(function(window) {

	function allowDrop(ev) {
		ev.preventDefault();
	}

	function drag(ev) {
		ev.dataTransfer.setData("Text", ev.target.id);
	}

	function drop(ev) {
		ev.preventDefault();
		var data = ev.dataTransfer.getData("Text");
		addImage(260, 70, 60, 65, document.getElementById(data).src);
	}

	window.allowDrop = allowDrop;
	window.drag = drag;
	window.drop = drop;

})(window);